{extend name="public/base"/}
 {block name="content"}
  <section class="content">
           <div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title">
				<a href="{:U('User/roles')}" class="btn btn-primary">角色列表</a>
				</h3>
				 <h3 class="box-title">
				<a href="" class="btn btn-primary">访问授权</a>
				</h3> 
			</div>
			<!-- /.box-header -->
			<div class="box-body">
			
			
			
             <form action="{:U('Auth/save_auth')}" method="post">
			 <input type="hidden" value="{$_GET['id']}" name="rid" />
				<table class="table table-bordered table-hover">
				<thead>
				<p style="color:red">正在为"{$rolename['name']}"配置权限</p>
				<tr>
					<th><input name="" type="checkbox" value="3">后台功能</th>
				</tr>
				</thead>
				{volist name="info" id="data"}
				<tbody style="border:none">	
				<tr>
				<td style="font-size:15px;padding-left:30px;"><input name="name[]" type="checkbox" value="{$data.id}_{$data.level}">{$data.title}:</td>	
				</tr>
				<tr>
				<?php
				$where['pid']=$data['id'];
				$action = M('node')->where($where)->select();
				?>
				{volist name="action" id="data"}
					<td style="padding-left:60px;"><input name="name[]" type="checkbox" value="{$data.id}_{$data.level}">{$data.title}</td>	
                {/volist}
				</tr> 				
				</tbody>
				{/volist}
				</table>
				<br/>
				
				<div class="box-footer">
                  <button type="submit" class="btn btn-primary">保存</button>
                </div>
				</form>
				
				
				
				
				
				
				

				
				
			</div>
		</div>
	</div>
</div>

 
			</section>
 {/block}